<?php
class MasterModel extends Model
{

	public function getMasterInfo()
	{
		$sql="select * from bg_master limit 1";
		return $this->dao->fetchRow($sql);
	}
	public function updateMasterInfo($masterInfo)
	{
		extract($masterInfo);
		$sql="update bg_master set nickname='$nickname',job='$job',home='$home',tel='$tel',email='$email'";
		return $this->dao->my_query($sql);
	}
}